﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;

namespace ReportsApp
{
    public partial class SplashScreen : Form
    {
        public SplashScreen()
        {
            InitializeComponent();
            string timeInterval = ConfigurationManager.AppSettings["SplashScreenDisplayTime"];
            if (timeInterval == null)
                timer1.Interval = 3000;
            else
                timer1.Interval = int.Parse(timeInterval);
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
